package com.uduemc.biso.module.basic.service.common.service;

import com.github.pagehelper.PageInfo;
import com.uduemc.biso.core.common.extities.CCustomerData;
import com.uduemc.biso.core.common.extities.CHostListCustomerData;

public interface CCustomerService {

	/**
	 * 通过参数 CCustomerData 创建 CCustomerData 数据 过程包含各种验证外插入的数据表如下:
	 * customer_user、customer_role、host、host_setup、site
	 * 
	 * @param customerData
	 * @return
	 */
	public CCustomerData append(CCustomerData customerData);

	/**
	 * 通过id 以及 agentId 获取 CHostListCustomerData数据
	 * 
	 * @param id
	 * @param agentId
	 * @return
	 */
	public CHostListCustomerData info(long id, long agentId);

	/**
	 * 条件查询获取CHostListCustomerData数据
	 * 
	 * @param agentId
	 * @param username
	 * @param numberKey
	 * @param status
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 */
	public PageInfo<CHostListCustomerData> infos(long agentId, String username, String numberKey, short status,
			int pageNumber, int pageSize);

}
